package com.xteam.ecsystem.entities;

import java.io.Serializable;

/**
 * 相关商品表
 * 
 * @author tangkf
 * @date 2012-08-14
 */
public class BaseRefGoods implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 类名称
	 */
	public static final String REF = "BaseRefGoods";

	/**
	 * 系统ID 的属性名
	 */
	public static final String PROP_BRGID = "brgId";

	/**
	 * 主要商品 的属性名
	 */
	public static final String PROP_BRGMGOODS = "brgMgoods";

	/**
	 * 关联商品 的属性名
	 */
	public static final String PROP_BRGRGOODS = "brgRgoods";

	/**
	 * 是否双向关联 0-单向，1-双向
	 */
	public static final String PROP_BRGISDOUBLE = "brgIsDouble";
	/**
	 * 系统ID
	 */
	private java.lang.String brgId;

	/**
	 * 主要商品
	 */
	private java.lang.String brgMgoods;

	/**
	 * 关联商品
	 */
	private java.lang.String brgRgoods;

	/**
	 * 是否双向关联
	 */
	private java.lang.String brgIsDouble;

	/**
	 * 获取 系统ID 的属性值
	 * 
	 * @return brgId : 系统ID
	 * @author tangkf
	 */
	public java.lang.String getBrgId() {
		return this.brgId;
	}

	/**
	 * 设置 系统ID 的属性值
	 * 
	 * @param brgId :
	 *            系统ID
	 * @author tangkf
	 */
	public void setBrgId(java.lang.String brgId) {
		this.brgId = brgId;
	}

	/**
	 * 获取 主要商品 的属性值
	 * 
	 * @return brgMgoods : 主要商品
	 * @author tangkf
	 */
	public java.lang.String getBrgMgoods() {
		return this.brgMgoods;
	}

	/**
	 * 设置 主要商品 的属性值
	 * 
	 * @param brgMgoods :
	 *            主要商品
	 * @author tangkf
	 */
	public void setBrgMgoods(java.lang.String brgMgoods) {
		this.brgMgoods = brgMgoods;
	}

	/**
	 * 获取 关联商品 的属性值
	 * 
	 * @return brgRgoods : 关联商品
	 * @author tangkf
	 */
	public java.lang.String getBrgRgoods() {
		return this.brgRgoods;
	}

	/**
	 * 设置 关联商品 的属性值
	 * 
	 * @param brgRgoods :
	 *            关联商品
	 * @author tangkf
	 */
	public void setBrgRgoods(java.lang.String brgRgoods) {
		this.brgRgoods = brgRgoods;
	}

	/**
	 * 设置 是否双向关联 的属性值
	 * 
	 * @param brgIsDouble :
	 *            是否双向关联
	 * @author tangkf
	 */
	public java.lang.String getBrgIsDouble() {
		return this.brgIsDouble;
	}

	public void setBrgIsDouble(java.lang.String brgIsDouble) {
		this.brgIsDouble = brgIsDouble;
	}

	/**
	 * 转换为字符串
	 * 
	 * @author tangkf
	 */
	public String toString() {
		return "{" + "brgId(系统ID)=" + brgId + "," + "brgMgoods(主要商品)="
				+ brgMgoods + "," + "brgRgoods(关联商品)=" + brgRgoods + ","
				+ "brgIsDouble(是否双向关联)=" + brgIsDouble + "}";
	}

	/**
	 * 转换为 JSON 字符串
	 * 
	 * @author tangkf
	 */
	public String toJson() {
		return "{" + "brgId:'" + brgId + "'," + "brgMgoods:'" + brgMgoods
				+ "'," + "brgRgoods:'" + brgRgoods + "'," + "brgIsDouble:'"
				+ brgIsDouble + "'}";
	}

}